package observer;

/**
 * @Author liangliangzhao
 * @data 2023/4/18 18:05
 */

public class Client {
    public static void main(String[] args) {
        //创建一个WeatheData
        WeatherData weatherData = new WeatherData();
        //创建观察者
        CurrentConditions currentConditions = new CurrentConditions();
        //注册到weatherData
        weatherData.registerObserver(currentConditions);
        System.out.println("通知各个注册的观察者,看看信息");
        weatherData.setData(10f,100f,30.3f);
    }
}
